//
//  WHSingleton.h
//  AddressBook
//
//  Created by  on 2020/7/29.
//  Copyright © 2020 wh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface WHSingleton : NSObject

@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *phone;
@property (nonatomic, strong) NSString *address;
@property (nonatomic, strong) NSString *imageStr;

+ (instancetype) shareInstance;
//在单例里添加数据
+ (void)setDataWithIndex:(NSInteger)index content:(NSString *)content;
//清除数据
+ (void)deleteAll;
@end

NS_ASSUME_NONNULL_END
